<?php
namespace App\Http\Controllers;

use App\Models\User;
use App\Models\Collections;
use App\Models\Galleries;
use App\Models\Commonts;
use App\Models\Votes;


use Request, Res;
class IndexController extends PublicController {
    
    public function _initialize(){
    }
    public function anyIndex(){
        $result = [];
        $result['user_num'] = User::count();
        $result['galleries_num'] = Galleries::count();
        $result['collections_num'] = Collections::count();
        $result['commonts_num'] = Commonts::count();
        $result['votes_num'] = Votes::count();

        return view('admin.index')->with('result', $result);
    }

}
